<%-- 
    Document   : welcome
    Created on : Oct 7, 2011, 9:23:55 PM
    Author     : Nguyen Thi Thu Huong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@page language="java" import="pojo.BanTinPoJo" %>
<%@page import="dao.BanTinDao" %>
<%@page import="java.util.List" %>

<%
    BanTinDao dao = new BanTinDao();
    List<BanTinPoJo> dsCoupon = dao.TimCoupon(1);
%>

<link rel="stylesheet" type="text/css" href="scripts/default.css">
<div id="navbar" class="navbar-default">
    <ul>
                <li class="first">&nbsp;</li>
                <li><a href="http://www.giamua.com/thoi-trang">Thời trang</a></li>
                <li class="sep">&nbsp;</li>
                <li><a href="http://www.giamua.com/an-uong">Ăn uống</a></li>
                <li class="sep">&nbsp;</li><li><a href="http://www.giamua.com/lam-dep">Làm đẹp</a></li>
                <li class="sep">&nbsp;</li><li><a href="http://www.giamua.com/giai-tri">Giải trí</a></li>
                <li class="sep">&nbsp;</li><li><a href="http://www.giamua.com/du-lich">Du lịch</a></li>
                <li class="sep">&nbsp;</li><li><a href="http://www.giamua.com/ky-thuat-so">Kỹ thuật số</a></li>
                <li class="sep">&nbsp;</li><li><a href="http://www.giamua.com/hang-gia-dung">Hàng gia dụng</a></li>
                <li class="sep">&nbsp;</li><li><a href="http://www.giamua.com/khac">Khác</a></li>
                <li class="search-box"><input id="query" value="Tìm voucher" type="text"></li>
                <li></li>
            </ul>
</div>

<div id="qc-vip">
            <div class="qc" id="qc-49" style="position: relative;">
                <div style="cursor: pointer; opacity: 0; visibility: visible; position: absolute; top: 0px; left: 0px; width: 960px; height: 60px; background-color: rgb(255, 255, 255);" class="qc-overlay" title="Set menu Tại  BBQ Khói off 49%"></div>
                <script type="text/javascript">
                    $(document).ready(function() {
                                    var divQC = $('#qc-49');
                                    var position = divQC.getBox();
                                    var divOverlay = $('<div class="qc-overlay" title="Set menu Tại  BBQ Khói off 49%" />');
                                    divOverlay.css({
                                       'cursor': 'pointer',
                                       'opacity': '0',
                                       'visibility': 'visible',
                                       'position': 'absolute',
                                       'top': '0px',
                                       'left': '0px',
                                       'width': '960px',
                                       'height': '60px',
                                       'background-color': '#fff'
                                    });
                                   divOverlay.prependTo(divQC);
                                   divOverlay.click(function(e) { window.open('/l.aspx?id=49')});
                                });
            </script>
                <object style="visibility: visible;" id="fla-49" data="images/hotdeal_960X60_BBQKhoi.swf" type="application/x-shockwave-flash" width="960" height="60">
                    <param value="high" name="quality">
                    <param value="transparent" name="wmode">
                </object>
                            <script type="text/javascript">
                               
                                swfobject.embedSWF('images/hotdeal_960X60_BBQKhoi.swf', 'fla-49', 960, 60, '9.0.0', {}, {}, {quality: 'high', wmode: 'transparent'});
                            </script></div>
        </div>


<div id="content-container">
                <div id="bread-crumb">
                    Bạn đang xem <strong>Tất cả</strong> các danh mục giảm giá<ul id="menu_location"><li><span> trên <strong>Toàn quốc <span class="expand-link">▼</span></strong></span>
                            <ul class="menu_items view-mode-list"><li><a href="http://www.giamua.com/?l=hcm">Tp. Hồ Chí Minh</a></li><li><a href="http://www.giamua.com/?l=ha-noi">Hà Nội</a></li></ul></li></ul><div id="filter-link"><a href="http://www.giamua.com/?l=&amp;m=nwt">Mới đăng</a><span class="filter-seperator"> | </span><span class="filter-selected-item">Nổi bật</span></div>
                </div>
                <div id="hot-news">
                    <div id="hot-news-left"></div>
                    <div id="hot-news-right"></div>
                   <!-- <div style="display: block;" id="news-tickets"><strong>Trần Kim Hưng - Nguyễn Thị Thu Hương - Lương Xuân Hương </strong>Nhóm H3</div> -->
                </div>
                
                <div id="content-container-top"></div> 
                <div id="content-list">
                    <div class="pane-caption1">
                        COUPON 
                  </div>                    
                    <div id="list-container">
                        <%
                            for(int i=0;i<dsCoupon.size();i++)
                            {
                                BanTinPoJo bt=dsCoupon.get(i);
                        %>
                      <div style="display: none;" id="show-vip-item">Xem tin hot ▼</div>
                      <div class="item-detail vip-item-detail">
                          <div class="vip-coupon"></div><h2 class="vip-item-detail-title">
                              <a href="http://www.giamua.com/r.aspx?id=13085" target="_blank"><%=bt.gettieuDe()%></a></h2>
                          <div class="item-detail-info"><div class="item-detail-info-left">
                                  <table cellpadding="3" cellspacing="0">
                                      <tbody>
                                          <tr><td>
                                                  <img src="images/address-icon.png" alt="Địa điểm"></td>
                                              <td class="address"><strong>Tp.HCM</strong> - 525/3 Tô Hiến Thành, P.14, Q.10</td></tr>
                                          <tr>
                                              <td><img src="images/timeremain-icon.png" alt="Thời gian còn lại"></td>
                                              <td class="timeremain"><span class="time" timeleft="12711">3 giờ 31 phút 52 giây</span>
                                              </td>
                                          </tr>
                                      </tbody>
                                  </table></div><div class="vip-item-detail-info-right">
                                      <table style="width: 260px; height: 40px;" cellpadding="0" cellspacing="0">
                                          <tbody><tr><td class="salesprice-title">Giá bán</td>
                                                  <td class="originalprice-title">Giá gốc</td>
                                                  <td class="discount-title">GIẢM</td></tr>
                                                      <tr><td class="salesprice-value"><%=bt.getGiaBan()%></td>
                                                          <td class="originalprice-value"><%=bt.getGiaGoc()%>đ</td>
                                                          <td class="discount-value"><%=bt.getGiamGia()%>%</td>
                                                      </tr></tbody></table></div></div><div class="clear"></div>
                          <div class="item-detail-content">
                              <img class="image-content" src="images/hd2011-09-22_114047.jpg" alt="Điều trị xóa nếp nhăn tại Lavender Day Spa">
                              <p class="text-content"><%=bt.getnoiDung()%></p><div class="text-source">
                                  <table style="width: 460px;" 1="" cellpadding="0" cellspacing="0">
                                         <tbody>
                                          <tr><td style="width: 16px;"><img src="images/hotdeal.png" alt="hotdeal.vn"></td><td style="padding-left: 5px;"><a href="http://www.hotdeal.vn/" target="_blank">hotdeal.vn</a></td><td class="action-bar" align="right" width="118px"><a href="http://www.giamua.com/coupon/13085"><div style="visibility: visible;" class="comment">Bàn luận (<strong>0</strong>)</div></a></td>
                                              <td class="action-bar" align="right" width="88px">
                                                  <div style="visibility: visible;" id="img-13085" class="like">Thích (<strong>4</strong>)</div></td><td class="action-bar" align="right" width="78px"><div style="visibility: visible;" id="hide-vip-btn" class="hide-vip-btn">Ẩn tin hot</div></td></tr></tbody></table></div></div><div class="clear"></div></div>
                                                  <%
                                               }
                        %>
                      <div id="pagination">
                          <span>1</span> <a href="http://www.giamua.com/?si=8">2</a> 
                          <a href="http://www.giamua.com/?si=16">3</a> 
                          <a href="http://www.giamua.com/?si=24">4</a> 
                          <a href="http://www.giamua.com/?si=32">5</a> 
                          <a class="nav" href="http://www.giamua.com/?si=8">Tiếp »</a>
                      </div>
                        &nbsp;
                        <div class="clear"></div>
                        
                    </div>
                </div>
                <div id="content-container-bottom"></div>
            </div>
            